import React, {Component} from 'react'
import FeedBackVM from 'cvm/mine/feedBack'
import './index.less'
import { observer } from 'mobx-react/custom'

@observer
export default class FeedBack extends Component {
  vm = new FeedBackVM(this.props)
  constructor (props) {
    super(props)
    window.document.title = '意见反馈'
  }

  render () {
    return (
      <div className='feed-back'>
        <textarea ref='contentTextarea'
          value={this.vm.contentValue}
          onChange={this.vm.handleChangeContent}
          placeholder='写下你要对我们说的话哦！' />
        <button onClick={this.vm.handleSubmit}
          style={this.vm.submitStyle}>提交</button>
      </div>
    )
  }
}
